git-socket-constants
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Sun, 8 Sep 2019 20:34:02 +0000 (21:34 +0100)
committerAurelien Jarno <aurel32@debian.org>
Sun, 8 Sep 2019 20:34:02 +0000 (21:34 +0100)
commit5670338d1a5f9be847102175f536f108a0ada3d8
tree1fea26da3dad9ad7a9a2d2ff126381228043ad54
parent84b92da058b08f94d9383e4bbb8237a95d22c76d
git-socket-constants

2019-07-24  Florian Weimer  <fweimer@redhat.com>

[BZ #24532]
Linux: Use in-tree copy of SO_ constants for !__USE_MISC.
* sysdeps/unix/sysv/linux/Makefile [$(subdir) == socket]
(sysdep_headers): Add bits/socket-constants.h.
(tests-special): Add tst-socket-consts.out.
(tst-socket-consts.out): New target.
* sysdeps/unix/sysv/linux/bits/socket.h: Remove macro tracking
around <asm/unistd.h>.
[__USE_MISC]: Include <bits/types/time_t.h> before <asm/socket.h>.
[!__USE_MISC]: Include <sys/socket-constants.h> instead of
<asm/socket.h>.
* sysdeps/unix/sysv/linux/bits/tst-socket-consts.py: New file.
* sysdeps/unix/sysv/linux/bits/socket-constants.h: Likewise.
* sysdeps/unix/sysv/linux/alpha/bits/socket-constants.h: Likewise.
* sysdeps/unix/sysv/linux/hppa/bits/socket-constants.h: Likewise.
* sysdeps/unix/sysv/linux/mips/bits/socket-constants.h: Likewise.
* sysdeps/unix/sysv/linux/powerpc/bits/socket-constants.h:
Likewise.
* sysdeps/unix/sysv/linux/sparc/bits/socket-constants.h: Likewise.

Gbp-Pq: Topic any
Gbp-Pq: Name git-socket-constants.diff
sysdeps/unix/sysv/linux/Makefile
sysdeps/unix/sysv/linux/alpha/bits/socket-constants.h [new file with mode: 0644]
sysdeps/unix/sysv/linux/bits/socket-constants.h [new file with mode: 0644]
sysdeps/unix/sysv/linux/bits/socket.h
sysdeps/unix/sysv/linux/hppa/bits/socket-constants.h [new file with mode: 0644]
sysdeps/unix/sysv/linux/mips/bits/socket-constants.h [new file with mode: 0644]
sysdeps/unix/sysv/linux/powerpc/bits/socket-constants.h [new file with mode: 0644]
sysdeps/unix/sysv/linux/sparc/bits/socket-constants.h [new file with mode: 0644]
sysdeps/unix/sysv/linux/tst-socket-consts.py [new file with mode: 0644]